function replaceConstructor(constructor): any{
    return class extends constructor{
       constructor(...args){
        console.log('111')
        super(...args)
        console.log('instance create')
       }
    }
}

@replaceConstructor
class User{
    constructor(public name: string){
        console.log('user')
    }
}

const doc = new User('my document')
console.log(doc.name)

export {}